from flask import Blueprint
from .Default import Default_redprint

# 封装函数配置蓝本
def create_official_blueprint(app,blueprint_url_prefix):
    official_web = Blueprint('official_web',
                             __name__,
                             template_folder='../../templates/official/',
                             static_folder="../../static/official/",
                             static_url_path="/static"
                             )
    Default_redprint.register(official_web,url_prefix=None)
    app.register_blueprint(official_web, url_prefix=blueprint_url_prefix)